import fetch from 'utils/fetch';
// 分页
export function page(query) {
    return fetch({
        url: '/api/admin/loanOrderApplyTown/selectOrderInfo4Page',
        method: 'get',
        params: query
    });
}
// 导出
export function pageExport(query) {
  return fetch({
      url: '/api/admin/loanOrderApplyTown/selectOrderInfo4Export',
      method: 'get',
      params: query
  });
}
// 放款失败原因
export function loanError(id) {
    return fetch({
      url: '/api/admin/loanOrderApplyTown/loanFailureReason/' + id,
      method: 'get'
    })
  }
// 解绑 
export function bankUntied(obj) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/bankUntied',
    method: 'put',
    data: obj
  })
}
// 重新放款
export function againColl(id, query) {
    return fetch({
      url: '/api/admin/loanOrderApplyTown/orderApplyCheckStatus/' + id,
      method: 'put',
      params: query
    })
  }
// 订单作废
export function updateOrderStatus(query) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/updateOrderStatus',
    method: 'put',
    params: query
  })
}  
// 清楚缓存
export function clearUserRedis(obj) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/clearUserRedis',
    method: 'post',
    data: obj
  })
}
// 修改订单信息
export function yearUpUserName(obj) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/yearUpUserName',
    method: 'post',
    data: obj
  })
}
// 还款查询
export function repaymentQuery(obj) {
  return fetch({
    url: '/api/admin/loanOpen/repaymentQuery',
    method: 'post',
    data: obj
  })
}
